home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Archive / Memory / Cache Flushing / About Cache.c next >
Encoding:
Text File  |  2000-09-28  |  757 b   |  9 lines  |  [TEXT/ttxt]

  1. Cache.c contains code to correctly flush instruction and data caches on all Macintosh CPUs.
  2.  
  3. Beginning with the Macintosh II, developers were faced with situations where instruction and/or data caches needed to be flushed for code to execute correctly.  Unfortunately, despite recent improvements (i.e. _HWPriv, see Tech Note #261), cache flushing remains highly CPU and system specific and developers have had difficulty doing it in a way the ensures both forward and backward compatibility.   Cache.c contains a single function call that will work across all platforms, yet still provides access to such advanced MC68040 features as selective cache range flushing.
  4.  
  5. See instructions in Cache.h for details on usage.
  6.  
  7. Dave Radcliffe
  8. Apple DTS
  9. January, 1992